package com.service.impl;

import java.io.Serializable;
import java.util.List;

import com.dao.DealDao;
import com.enetiy.Balance;
import com.enetiy.Balanceorder;
import com.enetiy.Keeptime;
import com.enetiy.Transaction;
import com.enetiy.Vipmember;
import com.enetiy.Viprecord;
import com.service.DealService;
import com.util.PagingUilt;

public class DealServiceImpl implements DealService {
private DealDao dealDao;
	@Override
	public Serializable insetrTransaction(Transaction transaction)
			throws Exception {
		return this.dealDao.insetrTransaction(transaction);
	}

	@Override
	public Serializable insetrVipmember(Vipmember vipmember) throws Exception {
		return this.dealDao.insetrVipmember(vipmember);
	}

	@Override
	public void deleteVipmember(Vipmember vipmember) throws Exception {
		this.dealDao.deleteVipmember(vipmember);
	}

	@Override
	public Serializable insertBalance(Balance balance) throws Exception {
		return this.dealDao.insertBalance(balance);
	}

	@Override
	public void updateBalance(Balance balance) throws Exception {
		this.dealDao.updateBalance(balance);
	}

	@Override
	public Balance selectBalance(int userid) throws Exception {
		return this.dealDao.selectBalance(userid);
	}

	@Override
	public List<Vipmember> selectVipmember(int userid) throws Exception {
		return this.dealDao.selectVipmember(userid);
	}

	@Override
	public void selectTransaction(PagingUilt<Transaction> pu,int userid) throws Exception {
		this.dealDao.selectTransaction(pu,userid);
	}

	public void setDealDao(DealDao dealDao) {
		this.dealDao = dealDao;
	}

	@Override
	public Keeptime selectKeeptime(int userid) throws Exception {
		return this.dealDao.selectKeeptime(userid);
	}

	@Override
	public void insertKeeptime(Keeptime keeptime) throws Exception {
		this.dealDao.insertKeeptime(keeptime);
	}

	@Override
	public void updateKeeptime(Keeptime keeptime) throws Exception {
		this.dealDao.updateKeeptime(keeptime);
		
	}

	@Override
	public Balanceorder selectBalanceorder(int userid, String orderFrom)
			throws Exception {
		return this.dealDao.selectBalanceorder(userid, orderFrom);
	}

	@Override
	public Serializable insertBalanceorder(Balanceorder balanceorder)
			throws Exception {
		return this.dealDao.insertBalanceorder(balanceorder);
	}

	@Override
	public Keeptime selectKeeptime(int userid, int type,int device, int areaid)
			throws Exception {
		return dealDao.selectKeeptime(userid, type,device, areaid);
	}

	@Override
	public Keeptime selectKeeptime(int userid, int type) throws Exception {
		return dealDao.selectKeeptime(userid, type);
	}

	@Override
	public Vipmember selVipmember(int userid, int vipnum) throws Exception {
		return dealDao.selVipmember(userid, vipnum);
	}

	@Override
	public Viprecord selViprecord(int userid, int vipnum) throws Exception {
		return dealDao.selViprecord(userid, vipnum);
	}

	@Override
	public Serializable insetrViprecord(Viprecord Viprecord) throws Exception {
		return this.dealDao.insetrViprecord(Viprecord);
	}

	@Override
	public Keeptime selectKeeptime(int userid, String netorder)
			throws Exception {
		return this.dealDao.selectKeeptime(userid, netorder);
	}

}
